<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script>
    //promise链条状态未改变则中断链
    const p1 = new Promise((res, rej) => {
      res('err-------')
    })
    p1.then(val => {
      console.log(1111)
    }).then((val) => {
      console.log(2222)
      return new Promise(() => {})
    }).then((val) => {
      console.log(3333)
    }).then((val) => {
      console.log(4444)
    })
  </script>
</head>

<body>

</body>

</html>